#!/bin/bash

lidstate=`cat /proc/acpi/button/lid/LID/state | gawk {'print $2'}`;
case "$lidstate" in
	open)
		#/usr/bin/radeontool light on;
		vbetool dpms on;
		;;
	closed)
		#/usr/bin/radeontool light off;
		vbetool dpms off;
		;;
esac
